{% extends "base.html" %}
{% block title %}Start{% endblock %}
{% block content %}
<div class="content">
            <p class="content-note1">修改物资请购信息<span class="content-note2"> (标注为*为必填项)</span></p>
            <div style="clear:both"></div>
            <form action="/cgdetail/" method="post" name="cgdetail">
                {% csrf_token %}
                <p><span>ID：</span><input type="text" name="id">
            <button type="submit">查询</button>
            </form>
            {% for cgassetinfo in cgassetinfo %}
            <form action="/submitdetail/" method="post" name="submitdetail">
                {% csrf_token %}
                <div class="form-list">
                    <span>ID：</span><input type="text" value="{{ cgassetinfo.id }}" name="id">
                </div>
                <div class="form-list">
                    <span>是否完成：</span><input type="text" value="{{ cgassetinfo.Finish }}" name="Finish" placeholder="不超过10个字符">
                </div>
                <div class="form-list">
                    <span>需求来源：</span><input type="text" value="{{ cgassetinfo.Source }}" name="Source" placeholder="不超过300个字符">
                </div>
                <div class="form-list">
                    <span>单据号：</span><input  type="text" name="Document_No" value="{{ cgassetinfo.Document_No }}" placeholder="不超过50个字符"/>
                </div>
                <div class="form-list">
                    <span>采购订单号：</span><input type="text" name="Order_No" value="{{ cgassetinfo.Order_No }}" placeholder="不超过50个字符"/>
                </div>
                <div class="form-list">
                    <span>请购日期：</span><input  type="text" name="Requisition_date" value="{{ cgassetinfo.Requisition_date }}" placeholder="不超过50个字符"/>
                </div>
                <div class="form-list">
                    <span>请购物资/固定资产：</span><input  type="text" name="Materials" value="{{ cgassetinfo.Materials }}" placeholder="不超过300个字符"/>
                </div>
                <div class="form-list">
                    <span>请购部门：</span><input  type="text" name="Department" value="{{ cgassetinfo.Department }}" placeholder="不超过50个字符"/>
                </div>
                <div class="form-list">
                    <span>请购人：</span><input  type="text" name="Requisitioner" value="{{ cgassetinfo.Requisitioner }}" placeholder="不超过30个字符"/>
                </div>
                <div class="form-list">
                    <span>请购数量：</span><input  type="text" name="Requisition_Num" value="{{ cgassetinfo.Requisition_Num }}" placeholder="不超过20个字符"/>
                </div>
                <div class="form-list">
                    <span>请购用途：</span><input   type="text" name="Requisition_purpose" value="{{ cgassetinfo.Requisition_purpose }}" placeholder="不超过300个字符">
                </div>
                <div class="form-list">
                    <span>采购订单生成时间：</span><input   type="text" name="Order_Time" value="{{ cgassetinfo.Order_Time }}" placeholder="不超过50个字符">
                </div>
                <div class="form-list">
                    <span>采购员：</span><input   type="text" name="Purchaser" value="{{ cgassetinfo.Purchaser }}" placeholder="不超过30个字符">
                <div class="form-list">
                    <span>超长原因说明：</span><input   type="text" name="Reason" value="{{ cgassetinfo.Reason }}" placeholder="不超过300个字符">
                </div>
                <div class="form-list">
                    <span>供应商：</span><input   type="text" name="Supplier" value="{{ cgassetinfo.Supplier }}" placeholder="不超过100个字符">
                </div>
                <div class="form-list">
                    <span>预计到货时间（采购回复）：</span><input   type="text" name="Arrival_time1" value="{{ cgassetinfo.Arrival_time1 }}" placeholder="不超过50个字符">
                </div>
                <div class="form-list">
                    <span>预计到货时间（供应商回复）：</span><input   type="text" name="Arrival_time2" value="{{ cgassetinfo.Arrival_time2 }}" placeholder="不超过50个字符">
                </div>
                <div class="form-list">
                    <span>实际到货时间（一）：</span><input  name="Actual_time1" value="{{ cgassetinfo.Actual_time1 }}" placeholder="不超过50个字符">
                </div>
                <div class="form-list">
                    <span>实际到货数量（一）：</span><input  type="text" name="Actual_Num1" value="{{ cgassetinfo.Actual_Num1 }}" placeholder="不超过20个字符">
                </div>
                <div class="form-list">
                    <span>实际到货时间（二）：</span><input  type="text" name="Actual_time2" value="{{ cgassetinfo.Actual_time2 }}" placeholder="不超过50个字符">
                </div>
                <div class="form-list">
                    <span>实际到货数量（二）：</span><input  type="text" name="Actual_Num2" value="{{ cgassetinfo.Actual_Num2 }}" placeholder="不超过20个字符">
                </div>
                <div class="form-list">
                    <span>实际到货时间（三）：</span><input  type="text" name="Actual_time3" value="{{ cgassetinfo.Actual_time3 }}" placeholder="不超过50个字符">
                </div>
                <div class="form-list">
                    <span>实际到货数量（三）：</span><input  type="text" name="Actual_Num3" value="{{ cgassetinfo.Actual_Num3 }}" placeholder="不超过20个字符">
                </div>
                <div class="form-list">
                    <span>未到数量：</span><input  type="text" name="Unarrival_Num" value="{{ cgassetinfo.Unarrival_Num }}" placeholder="不超过20个字符">
                </div>
                <div class="form-list">
                    <span>是否超期：</span><input type="text" value="{{ cgassetinfo.Overdue }}" name="Overdue" placeholder="不超过10个字符">
                    </select>
                </div>
                <div class="form-list">
                    <span>超期时间：</span><input  type="text" name="Overdue_time" value="{{ cgassetinfo.Overdue_time }}" placeholder="不超过20个字符">
                </div>
                <div class="form-list">
                    <span>备注：</span><input   type="text" name="Remarks" value="{{ cgassetinfo.Remarks }}" placeholder="不超过300个字符">
                </div>
                {% endfor %}
                    <div>
                        <div><button type="submit" >保存修改</button></div>
                    </div>
                    </div>

            </form>
{% endblock %}